package com.emm.yixun.common.model.dto;

import net.sf.oval.constraint.NotEmpty;

/**
 * OA对接公司表
 * 
 * @author Administrator
 *
 */
public class SubCompany {
    //所属总部
    @NotEmpty(message = "所属总部不能为空")
    private String companyCode;
    
    //公司类别公司类别定义（集团公司0，区域公司1，城市公司2，项目公司 3）
    @NotEmpty(message = "公司类别不能为空")
    private String subcompanyCategory;
    
    //公司编码
    @NotEmpty(message = "公司编码不能为空")
    private String subcompanyCode;
    
    //公司名称
    @NotEmpty(message = "公司名称不能为空")
    private String subcompanyname;
    
    // 上级公司编码（一级公司为0）
    private String supsubcomCode;
    
    //是否封存 1 代表封存 0 未封存
    @NotEmpty(message = "封存状态不能为空")
    private String canceled;

    public String getCompanyCode() {
	return companyCode;
    }

    public void setCompanyCode(String companyCode) {
	this.companyCode = companyCode;
    }

    public String getSubcompanyCategory() {
	return subcompanyCategory;
    }

    public void setSubcompanyCategory(String subcompanyCategory) {
	this.subcompanyCategory = subcompanyCategory;
    }

    public String getSubcompanyCode() {
	return subcompanyCode;
    }

    public void setSubcompanyCode(String subcompanyCode) {
	this.subcompanyCode = subcompanyCode;
    }

    public String getSubcompanyname() {
	return subcompanyname;
    }

    public void setSubcompanyname(String subcompanyname) {
	this.subcompanyname = subcompanyname;
    }

    public String getSupsubcomCode() {
	return supsubcomCode;
    }

    public void setSupsubcomCode(String supsubcomCode) {
	this.supsubcomCode = supsubcomCode;
    }

    public String getCanceled() {
	return canceled;
    }

    public void setCanceled(String canceled) {
	this.canceled = canceled;
    }

    public SubCompany(String companyCode, String subcompanyCategory,
	    String subcompanyCode, String subcompanyname, String supsubcomCode,
	    String canceled) {
	super();
	this.companyCode = companyCode;
	this.subcompanyCategory = subcompanyCategory;
	this.subcompanyCode = subcompanyCode;
	this.subcompanyname = subcompanyname;
	this.supsubcomCode = supsubcomCode;
	this.canceled = canceled;
    }

    public SubCompany() {
	super();
    }

}
